package org.dromara.wmscloud.domain.bo;

import org.dromara.wmscloud.domain.BaseMatGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 物料组业务对象 base_mat_group
 *
 * @author hou
 * @date 2025-04-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseMatGroup.class, reverseConvertGenerate = false)
public class BaseMatGroupBo extends BaseEntity {
    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long groupId;

    /**
     * 物料组编码
     */
    @NotBlank(message = "物料组编码不能为空", groups = { AddGroup.class })
    private String groupCode;

    /**
     * 物料组名称
     */
    private String groupName;


}
